Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / how do you delete a trigger zone

Author
Message
leigh4ever36
13
Years of Service
User Offline
Joined: 29th Dec 2010
Location: united kingdom
Posted: 19th Feb 2011 23:45
Hello been trying out the trigger zones, the one I used for an example is the spear. Say I want something to pass through it, it knows its there because the DEC before the endwhile works. But as soon as I call the phy delete trigger with the same or different ID as the spear,it wont delete because the trigger dosent exist

phy make trigger sphere 1, 300, 83, 60, 3

do

while phy get trigger data ( )
DEC take#,1
IF take#=0
phy delete trigger 1

endif
endwhile


sync
phy update
loop

hope I been as clear as I can
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 20th Feb 2011 19:46
Probably would have been better to post this on the Dark Physics & Dark A.I. board.

Anyway, I have tried to delete a trigger using the command with a sphere and DarkPhysics simply does not work (I know, it's hard to imagine). Just for fun, I tried it using a box and it did work, so try using a box trigger instead of the sphere.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Feb 2011 12:22
try this command to see if it returning with the right trigger to delete.




Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-11-16 19:13:49
Your offset time is: 2024-11-16 19:13:49