Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Collide function issue
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#11
RE: Collide function issue

(09-18-2014, 08:44 AM)Mudbill Wrote:
(09-18-2014, 08:15 AM)First Captain Wrote: Can't you just make a big area that covers the whole hallway, then use a script to check if the Player is in them, use GivePlayerDamage with timer so that the Player would be given damage per second.

If Player is in the area, GivePlayerDamage 10, with a looping timer until he dies.

GetEntitiesCollide doesn't support Player. How do you propose this can be done?

Dammit, I should of given more info.

Spoiler below!

Okay, make a big area that covers the hallway. Put an AddEntityCollideCallback function to that area. When the Player collides, execute this:
PHP Code: (Select All)
if(alState == 1)
{
AddTimer("r"5.0f"r");


The action in that alState function should be the looping timer that loops every n seconds and when the Player exits the area (that is if he does exit) remove the timers.


"Veni, vidi, vici."
"I came, I saw, I conquered."
09-18-2014, 09:04 AM
Find


Messages In This Thread
Collide function issue - by Radical Batz - 09-17-2014, 10:53 PM
RE: Collide function issue - by Daemian - 09-18-2014, 01:44 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 07:34 AM
RE: Collide function issue - by burge4150 - 09-18-2014, 05:09 AM
RE: Collide function issue - by i3670 - 09-18-2014, 06:20 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 07:27 AM
RE: Collide function issue - by PutraenusAlivius - 09-18-2014, 08:15 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 08:44 AM
RE: Collide function issue - by PutraenusAlivius - 09-18-2014, 09:04 AM
RE: Collide function issue - by Wapez - 09-18-2014, 08:51 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 09:04 AM
RE: Collide function issue - by MrBehemoth - 09-18-2014, 09:22 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 09:24 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 09:31 AM
RE: Collide function issue - by Mudbill - 09-18-2014, 09:59 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 10:23 AM
RE: Collide function issue - by Radical Batz - 09-18-2014, 02:09 PM
RE: Collide function issue - by burge4150 - 09-18-2014, 02:28 PM
RE: Collide function issue - by PutraenusAlivius - 09-18-2014, 02:31 PM
RE: Collide function issue - by Radical Batz - 09-18-2014, 02:33 PM



Users browsing this thread: 2 Guest(s)