
Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Aug 18, 2008 05:30 PM
Msg. 1 of 18
(global boolean is_server false) (script startup server (begin (if (= (unit_get_health check_vehicle) 0.0) (begin (set is_server true) (object_destroy check_vehicle) (object_create fuelghost1) (object_create fuelghost2) (object_create fuelghost3) (object_create fuelghost4) (object_create fuelghost5) (object_create fuelghost6) (object_create fuelghost7) (object_create fuelghost8) ) ) ) ) (script continuous client (begin (if (= is_server true) (begin (if (= (volume_test_object spawner fuelghost1) true) (begin (object_teleport fuelghost1 fuelghost1) (object_set_facing fuelghost1 fuelghost1) ) ) (if (= (volume_test_object spawner fuelghost2) true) (begin (object_teleport fuelghost2 fuelghost2) (object_set_facing fuelghost2 fuelghost2) ) ) (if (= (volume_test_object spawner fuelghost3) true) (begin (object_teleport fuelghost3 fuelghost3) (object_set_facing fuelghost3 fuelghost3) ) ) (if (= (volume_test_object spawner fuelghost4) true) (begin (object_teleport fuelghost4 fuelghost4) (object_set_facing fuelghost4 fuelghost4) ) ) (if (= (volume_test_object spawner fuelghost5) true) (begin (object_teleport fuelghost5 fuelghost5) (object_set_facing fuelghost5 fuelghost5) ) ) (if (= (volume_test_object spawner fuelghost6) true) (begin (object_teleport fuelghost6 fuelghost6) (object_set_facing fuelghost6 fuelghost6) ) ) (if (= (volume_test_object spawner fuelghost7) true) (begin (object_teleport fuelghost7 fuelghost7) (object_set_facing fuelghost7 fuelghost7) ) ) (if (= (volume_test_object spawner fuelghost8) true) (begin (object_teleport fuelghost8 fuelghost8) (object_set_facing fuelghost8 fuelghost8) ) ) ) ) ) ) Well, everything appears just fine. I have a trigger volume named spawner, the eight ghosts are in it, there is a longsword named check_vehicle in there, and the longsword is in globals. I really can't see what is wrong. If anyone can help, it would be great.
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Aug 18, 2008 05:32 PM
Msg. 2 of 18
Quote: --- Original message by: Guardian What makes you think this is technical support? sorry, i just thought someone could help, is all...
|
|
|

Newbkilla
Joined: Mar 9, 2008
- Artist, Environment Artist, Level Designer -
|
Posted: Aug 18, 2008 05:34 PM
Msg. 3 of 18
Guarding shut up. Hes asking for help and your fricking pissing in his face.
|
|
|

kai5888
Joined: Jun 29, 2008
Start the revolution
|
Posted: Aug 18, 2008 05:34 PM
Msg. 4 of 18
XD
|
|
|

kai5888
Joined: Jun 29, 2008
Start the revolution
|
Posted: Aug 18, 2008 05:37 PM
Msg. 5 of 18
i would start in this argument... but then i would end up going down in flames lol...
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Aug 18, 2008 05:40 PM
Msg. 6 of 18
Quote: --- Original message by: GuardianQuote: --- Original message by: Newbkilla Guarding shut up. Hes asking for help and your fricking pissing in his face. HE IS ASKING FOR HELP IN THE WRONG SECTION. I don't care who he is or what he has done, there are 2 sections for a reason. He is spitting in Dennis's face for not following the rules. And next time, spell my name right. I posted it here for a quicker result. I am not spitting in his face in any way, he can move it with just a few clicks. Now, if you don't have an answer to my problem, then please don't post.
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Aug 18, 2008 05:42 PM
Msg. 7 of 18
Quote: --- Original message by: Guardian He can, BUT HE SHOULDN'T HAVE TO! There are rules for a reason, just post in the right damn area next time. There is nothing right about disobeying the rules. I really fail to see how you can break the rules and think it is ok, and no one else can. And I fail to see how this is such a big deal to you that you feel you need to fuel an argument. Now stop before this gets locked.
|
|
|

Donut
Joined: Sep 30, 2006
I swear I'm not actually dead
|
Posted: Aug 18, 2008 05:45 PM
Msg. 8 of 18
yeah honestly too many people are posting issues and asking technical related questions in the general discussion forum. there is a forum labeled technical for a reason...
|
|
|

kai5888
Joined: Jun 29, 2008
Start the revolution
|
Posted: Aug 18, 2008 05:46 PM
Msg. 9 of 18
Officer Egg... i might be able to help you if i knew what all that client / server stuff is...
and gaurdian... on the 2 forums i have seen you on.. you have tried to argue....
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Aug 18, 2008 05:53 PM
Msg. 10 of 18
Well, moved now. Clent and server, i'm pretty sure the script syncing it on the server startup and people who join, aka clients.
|
|
|

kai5888
Joined: Jun 29, 2008
Start the revolution
|
Posted: Aug 18, 2008 05:56 PM
Msg. 11 of 18
i get that just not... the ((if <blah blah blah>=0.0) (then set_server client true)) and the other stuff
|
|
|

Kenshin3661
Joined: Aug 14, 2008
|
Posted: Aug 18, 2008 08:32 PM
Msg. 12 of 18
Who cares if he posted in the wrong place, even if it causes Dennis more work to do, even though some of the comments are right. You should check before you post something. Now can someone just help this kid out with his issue without solving it with nerdy internet fights.
|
|
|

Kenshin3661
Joined: Aug 14, 2008
|
Posted: Aug 18, 2008 10:46 PM
Msg. 13 of 18
Sense this post is populated, Anyone know how to set a Teleport Camera for sapien to work?
|
|
|

Donut
Joined: Sep 30, 2006
I swear I'm not actually dead
|
Posted: Aug 19, 2008 01:51 AM
Msg. 14 of 18
you just love that thread dont you cheatsman
|
|
|

Mythril
- Screenshot Guru -
Joined: Mar 29, 2008
Jeffrey Albert Waldo
|
Posted: Aug 19, 2008 04:03 AM
Msg. 15 of 18
Shouldn't it be object_create_anew?
Not sure, but that worked for mine.
And the thread has been moved.
[/arguement] Edited by Mythril on Aug 19, 2008 at 04:03 AM
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Aug 19, 2008 12:26 PM
Msg. 16 of 18
I don't clearly understand the purpose of the "client" script. Is it for vehicle teleporting, or to move all of those ghosts to a certain point in the map the moment they spawn? What exactly doesn't work in your script? Also, people in general really should learn how to indent their scripts. It looks much more organized and it helps a LOT when all the parentheses are matched up on equal indentations:
(global boolean is_server false)
(script startup server (begin (if (= (unit_get_health check_vehicle) 0.0) (begin (set is_server true) (object_destroy check_vehicle) (object_create fuelghost1) (object_create fuelghost2) (object_create fuelghost3) (object_create fuelghost4) (object_create fuelghost5) (object_create fuelghost6) (object_create fuelghost7) (object_create fuelghost8) ) ) ) )
(script continuous client (begin (if (= is_server true) (begin (if (= (volume_test_object spawner fuelghost1) true) (begin (object_teleport fuelghost1 fuelghost1) (object_set_facing fuelghost1 fuelghost1) ) ) (if (= (volume_test_object spawner fuelghost2) true) (begin (object_teleport fuelghost2 fuelghost2) (object_set_facing fuelghost2 fuelghost2) ) ) (if (= (volume_test_object spawner fuelghost3) true) (begin (object_teleport fuelghost3 fuelghost3) (object_set_facing fuelghost3 fuelghost3) ) ) (if (= (volume_test_object spawner fuelghost4) true) (begin (object_teleport fuelghost4 fuelghost4) (object_set_facing fuelghost4 fuelghost4) ) ) (if (= (volume_test_object spawner fuelghost5) true) (begin (object_teleport fuelghost5 fuelghost5) (object_set_facing fuelghost5 fuelghost5) ) ) (if (= (volume_test_object spawner fuelghost6) true) (begin (object_teleport fuelghost6 fuelghost6) (object_set_facing fuelghost6 fuelghost6) ) ) (if (= (volume_test_object spawner fuelghost7) true) (begin (object_teleport fuelghost7 fuelghost7) (object_set_facing fuelghost7 fuelghost7) ) ) (if (= (volume_test_object spawner fuelghost8) true) (begin (object_teleport fuelghost8 fuelghost8) (object_set_facing fuelghost8 fuelghost8) ) ) ) ) ) )
Now, tell me how much easier it is to understand that. That is your script, completely unchanged except for organization. Another bad habit in many people's scripts is the over-use of "begin". Begin is ONLY needed when there are multiple commands that need to be performed in one argument. I put in bold the "begin" commands that aren't needed so you can see for yourself. Just a few helpful tips that save time when scripting.
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Aug 19, 2008 06:43 PM
Msg. 17 of 18
The above script is directly from EHS.
:/ They are supposed to spawn at my flags, but they do not.
|
|
|

Mythril
- Screenshot Guru -
Joined: Mar 29, 2008
Jeffrey Albert Waldo
|
Posted: Aug 20, 2008 02:37 AM
Msg. 18 of 18
Do you have a trigger volume with them inside? And a vehicle called check
|
|
|