UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Spawn model walkable

broken avatar :(
Created 9 years ago
by Gabrielle
0 Members and 1 Guest are viewing this topic.
1,770 views
broken avatar :(
×
broken avatar :(
Location: nlThe Netherlands
Date Registered: 23 November 2013
Last active: 2 years ago
Posts
331
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Slayer Elite
×
Gabrielle's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Gabrielle's Contact & Social LinksTutorialZoneNL
I finally managed to spawn a model in-game (for spawning perks in existing maps) but I can walk through them.

I now got:

Code Snippet
Plaintext
model = spawn("script_model", (-158.182, -294.875, 1.125));
model.angles = (0, 180, 0);
model setmodel("zombie_vending_revive");

But I can walk through the perk. How can I make it so you can't walk through it?
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Use a collision model and link it to your model.

"collision_xxxxx" in xmodel
broken avatar :(
×
broken avatar :(
Location: nlThe Netherlands
Date Registered: 23 November 2013
Last active: 2 years ago
Posts
331
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Slayer Elite
×
Gabrielle's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Gabrielle's Contact & Social LinksTutorialZoneNL
Use a collision model and link it to your model.

"collision_xxxxx" in xmodel

How do I link it? And if I spawn the collision model won't the same thing happen?
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Use a collision model and link it to your model.

"collision_xxxxx" in xmodel
if hes only just found out how to spawn in models wont it be best to give him the spawn collision function?

anyways JoshZombieBoy use this function to spawn in collisions and make perks collidable

Code Snippet
Plaintext
/*
all 4 arguments are required but the second one must be "collider"

collision_model can be any collision model (collision_geo_X in assviwer)
origin is the location to spawn at
angles is the angles to rotate the collision entity to

would be best used like this

spawnCollision(<collision_model>, "collider", model.origin, model.angles);
*/

collision = spawnCollision(<collision_model>, "collider", <origin>, <angles>);

Double Post Merge: October 09, 2015, 10:28:57 pm
How do I link it? And if I spawn the collision model won't the same thing happen?

Code Snippet
Plaintext
collision = spawnCollision(<collision_model>, "collider", <origin>, <angles>);

the collision entity returned is like any other entity just call LinkTo(<parent>); on the collsion and it will be linked to it (have same origin and angles (with a offset of the distance away from parent))

EDIT: also you may need to precache and include the collsion model as 3arc maps dont precache or include some of them (if it doesnt work try precaching it if it still doesnt work add the include to your mod.csv still doesnt work after idk srry)

 
Loading ...