copying an entity
hi,
im trying to copy an info_player_start with this code: Code:
its just that the entity is often placed somewhere it shouldnt be in (like outside the map) |
any ideas ? :(
|
Code:
pev is used for getting origin, engfunc for setting it. This way doesn't have any bugs |
creating/changing player spawns after the map is running has never worked for me. Players will begin spawning at the origin, which sounds like what is happening to you
|
Code:
Code:
|
oh, that sounds about right JJkiller
what would be the best forward thats called before server activation in this case, if any ? :? |
if freecode's idea doesn't work and you just want to move them, you might wanna try
pfn_keyvalue (just change the origin) if you are trying to add extra spawns, maybe just using ripent to add them to the map will work i haven't tried either way, so i don't know if they will work. Also, i don't really think you need to copy all those variables. I think spawns only need classname, origin, and angle. (maybe something like "team" as well, depending on the mod. |
| All times are GMT -4. The time now is 14:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.