Jump to content
Sign in to follow this  
the unknown

onmapsingle click

Recommended Posts

i have this satellite script that works prefectly but i want to make it more usefull.

so i made a other script that whould allow you to move the gamelogic around where the sat will get at.

the problem is that when i use campos setpos pos it will put the logic at someting of 0 alt. and i want it to be 40.

i tryed the campos setpos [(getpos campos select 0),(getpos campos select 1),"40"] ting but it didnt worked.

this is how the script looks like

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

leader alpha sidechat "Requesting use of satellite over."

~5

leader delta sidechat "Request granded. Where you want the satellite Alpha?"

hint "click on the map where you want the pick up"

pos="NULL"

onMapSingleClick {pos=_pos; onMapSingleClick {}}

#wait

~0.1

? (pos in ["NULL"]) : goto "wait"

~1

campos setpos pos

~5

leader alpha sidechat format ["We want the satellite at %1 over",pos]

~5

leader delta sidechat "Roger that Alpha moveing satellite in possition."

Share this post


Link to post
Share on other sites
Quote[/b] ]campos setpos [(getpos campos select 0),(getpos campos select 1),"40"]

Remove quotes from 40, they are used on strings (like player sidechat "Oh no! Two is down."), not numerical values.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×