Posts
2,790
Respect
351Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Are you sure the zombie_spawns are really in the array ( check with a print if it actually returns an origin for example )
Also this doesn't really make sense:
I'm missing the [k] value in here? So you either want to remove the:
from there, or otherwise make it use the [k] value but doing so, that would prob move one zombie to all spawn points in the map. One after another, because the for() loop keeps going allong all spawn point's before it continues with the next zombie.. Might want to try something like this for the last part:
Now this would move them all to the first spawn-point in the array prob, (because it's Always defined) it's up to you to change the statement's to your need's or randomize the array or something..
Also according to zeroy's script reference the setorigin() is used for the players origin, dunno if it makes a difference for zomb's. You could try just doing
otherwise you might want to try the teleport() function to move your zombie's..
Hope this helps a bit...
If I remember corectly, Teleport() and ForceTeleport() take angles as the second argument.
- Phil.
You have to use GetStructArray() for script_structs, and GetEntArray() for anything else.
- Phil.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Teleport() does work. It just doesn't teleport when the player might be able to see the teleportation process. That's what ForceTeleport() is for, which is used for the dogs for example. It does work.
- Phil.
Teleport() does work. It just doesn't teleport when the player might be able to see the teleportation process. That's what ForceTeleport() is for, which is used for the dogs for example. It does work.
- Phil.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Well i'm out of ideas then unless i can get the linking method to work(which it isn't so far). I don't see why the forceteleport() isn't working, i have all the entities but they just won't move.