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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Entity Activate/Deactivate?
Bonehead Offline
Member

Posts: 50
Threads: 12
Joined: Apr 2013
Reputation: 1
#9
RE: Entity Activate/Deactivate?

My bad.. had it down wrong..

void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("armour_nice_complete_8", true);
SetEntityActive("armour_nice_complete_7", true);
SetEntityActive("armour_nice_complete_6", false);
SetEntityActive("armour_nice_complete_5", false);
PlaySoundAtEntity("armour_nice_complete_8", "impact_wood_heavy_low3.snt", 0, false);
PlaySoundAtEntity("armour_nice_complete_7", "impact_wood_heavy_low3.snt", 0, false);
}


EDIT: Now causing this crash

FATAL ERROR: Could not load script file 'custom_stories/TestMap/maps/test1.hps'!
main (42,2):ERR No Matching Signatures to
'PlaySoundAtEntity(string@&, const uint, const bool)
main (43,2):ERR: No Matching Signatures to
'PlaySoundAtEntity(string@&, string@&, const uint, const bool)'
(This post was last modified: 05-19-2013, 05:10 PM by Bonehead.)
05-19-2013, 05:07 PM
Find


Messages In This Thread
Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 08:05 AM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 08:32 AM
RE: Entity Activate/Deactivate? - by Romulator - 05-19-2013, 08:39 AM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 04:09 PM
RE: Entity Activate/Deactivate? - by 7heDubz - 05-19-2013, 04:12 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 04:29 PM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 04:57 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 05:07 PM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 05:53 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 05:56 PM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 06:56 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 07:36 PM



Users browsing this thread: 1 Guest(s)