01-30-2009, 03:26 AM | #1 |
Banned
Join Date: Sep 2008
Class/Position: Soldier Gametype: AVD Affiliations: TALOS Posts Rated Helpful 5 Times
|
Deleting an info_ff_script?
I have multiple instances of the same script in my map. When the player touches one of them, that specific one should disappear (get removed). How do I delete the info_ff_script? RemoveEntity(self) doesn't work and OutputEvent("","Kill") would require I make a different script for each instance in the map (50+).
Code:
a_special_script = info_ff_script:new({ name = "A script!" touchflags = {AllowFlags.kOnlyPlayers,AllowFlags.kYellow}, model = "models/items/ball/ball.mdl" }) function a_special_script:touch(touch_entity) if IsPlayer(touch_entity) then -- remove the specific script touched here. end end Last edited by Bridget; 01-30-2009 at 04:18 AM. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|